package com.company.bookstore.service.order_module;

import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.company.bookstore.entities.order_module.Order;
import com.company.bookstore.entities.user_admin_module.User;
import com.company.bookstore.qo.order_module.OrderQo;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 赵云霞
 * @since 2020-09-08
 */
public interface OrderService extends IService<Order> {

    List<Order> saveOrder(int uid,OrderQo[] orderQos);//已通过

    List<Order> getOrderByUid(int uid);//已通过

    List<Order> updateStatus(Order[] orders);

    Order updateDetails(OrderQo orderQo,int oid);

    Order getOrderDetail(int oid);//已通过

    boolean delete(int uid, int oid);//已通过

    Page<Order> getOrderPage(long current, long size);

    Page<Order> fuzzySearchOrder(OrderQo orderQo);

}
